const postcss = require('postcss')
const plugin = () => ({
    postcssPlugin: 'removeImport',
    AtRule: {
        import: (imp) => {
            imp.remove()
        }
    }
});
const css = `
@import './bar.css';
div {
    background-color: green;
    font-size: 20px;
    border: 1px solid #eee
}
`
const res = postcss([plugin()]).process(css, { from: undefined, to: undefined })
console.log(res.css)



